package com.wytec.xywzxw.bean;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "user")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "用户Id")
    private Integer id;
    @ApiModelProperty(value = "用户状态 1正常 0禁止登录")
    private Integer status;
    @ApiModelProperty(value = "登录次数")
    private Integer loginCount;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "手机号")
    private String mobile;
    @ApiModelProperty(value = "用户头像")
    private String avatar;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    @ApiModelProperty(value = "用户Token")
    private String token;
    @ApiModelProperty(value = "上次登录ip")
    private String lastLoginIp;
    @ApiModelProperty(value = "上次登录时间")
    private Date lastLoginTime;
}
